'use strict';

const Service = require('egg').Service;

class HomeService extends Service {
  async banner() {
    const user = await this.app.mysql.select('banners');
    return user;
  }

  async menu() {
    const user = await this.app.mysql.select('quick_menu');
    return user;
  }

  async tabmenu() {
    const data = await this.app.mysql.select('home_classify');
    return data;
  }
}

module.exports = HomeService;
